package com.yu;

import java.util.Arrays;
import java.util.List;

public class Test {
	public static void main(String[] args) {
		String[] a = "禁止访问,level1,level2,level3,level4,邮件认证,游客,level9,leve7,leve8,vip,special,选修only,level23,level0,111".split(",");
		System.out.println(Arrays.binarySearch(a, "level0"));
		List<String> userList = Arrays.asList(a);
		System.out.println(userList.contains("level30"));
		
	}
}
